package com.action.servlet;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.jdao.base.DaoFactory;
import com.jdao.dbHandlerImpl.JdaoHandlerImplSingleTon;

public class JDaoServletContextListener implements ServletContextListener {

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		System.out.println("-------->destroyed...");
	}

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		System.out.println("-------->initialized...");
		DaoFactory.setJdaoHandler(new JdaoHandlerImplSingleTon("database"));
	}

}
